home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
snippet.exe
/
ISPOW2.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-25
|
180b
|
12 lines
#include <stdio.h>
another_function(x) { return! ((~(~0U>>1)|x)&x -1) ;}
main()
{
int i;
for (i = 0; i < 256; ++i)
printf("%3d: %d\n", i, another_function(i));
}